﻿@model KCMS.Areas.Admin.Models.AllowableProductSizeEditorModel

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
        <fieldset>
         <div class="editor-label">
            @Html.LabelFor(model => model.AllowableProductSize.SizeId)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.AllowableProductSize.SizeId, Model.SizeList);
            @Html.ValidationMessageFor(model => model.AllowableProductSize.SizeId)
        </div>
         @Html.EditorFor(m => m.AllowableProductSize)
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Index", new { productId=Model.AllowableProductSize.ProductId})
</div>
